package com.lsj.dto.sys;

import com.lsj.core.validate.Add;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 * @author lsj
 * @since 2021-08-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DictAddDto {

    /**
     * 字段含义
     */
    @NotBlank(message = "字段含义不能为空",groups = Add.class)
    private String fieldNameCn;

    /**
     * 字段名称
     */
    @NotBlank(message = "字段名称不能为空",groups = Add.class)
    private String fieldName;

    /**
     * 字段值
     */
    @NotBlank(message = "字段值不能为空",groups = Add.class)
    private String fieldValue;

    /**
     * 字段值中文含义
     */
    @NotBlank(message = "字段值中文不能为空",groups = Add.class)
    private String fieldValueCn;

    /**
     * 字段类型
     */
    @NotBlank(message = "字段类型不能为空",groups = Add.class)
    private String fieldType;
}
